﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace SocketAPI.RemoteObjects
{
    public class remotePlayer
    {
        #region Variables
        private double x;
        private double y;
        private double rotation;
        private int health;
        private int currentWeapon;
        private int playerColour;
        private string address;
        private int port;
        #endregion
        #region Constructor
        public remotePlayer()
        {

        }
        public remotePlayer(string ip, int port)
        {
            this.address = ip;
            this.port = port;
        }
        public remotePlayer(double x, double y, double rotation, int health, int currentWeapon, int playerColour)
        {
            this.x = x;
            this.y = y;
            this.rotation = rotation;
            this.health = health;
            this.currentWeapon = currentWeapon;
            this.playerColour = playerColour;
        }
        #endregion
        #region set/get methods
        public double X
        {
            get
            {
                return this.x;
            }
            set
            {
                this.x = value;
            }
        }
        public double Y
        {
            get
            {
                return this.y;
            }
            set
            {
                this.y = value;
            }
        }
        public double Rotation
        {
            get
            {
                return this.rotation;
            }
            set
            {
                rotation = value;
            }
        }
        public int Health
        {
            get
            {
                return this.health;
            }
            set
            {
                health = value;
            }
        }
        public int CurrentWeapon
        {
            get
            {
                return this.currentWeapon;
            }
            set
            {
                currentWeapon = value;
            }
        }
        public int PlayerColour
        {
            get
            {
                return this.playerColour;
            }
            set
            {
                playerColour = value;
            }
        }
        #endregion
    }
}
